package com.nanuminc.market.settings;

import java.util.ArrayList;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;

import com.nanuminc.market.R;
import com.nanuminc.market.common.NavigationActivity;
import com.nanuminc.market.common.TimeLineAdapter;
import com.nanuminc.market.common.TimeLineList;
import com.nanuminc.market.settings.login.LoginSetting;

public class EtcSettings extends NavigationActivity {

	ArrayList<TimeLineList> arItem;
	TimeLineAdapter myAdapter;
	Context context;
	ListView settingList;
	Intent intent;
	
	final static int LOGIN_SETTING = 1;
	TextView title_left, title_center, title_right;
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.settings);
		
		context = getApplicationContext();
		
		title_left = (TextView) findViewById(R.id.btn_location);
		title_center = (TextView) findViewById(R.id.btn_title);
		title_right = (TextView) findViewById(R.id.btn_search);
		title_left.setVisibility(View.INVISIBLE);
		title_right.setVisibility(View.INVISIBLE);
		title_center.setVisibility(View.VISIBLE);
		
		findViewById(R.id.btn_login1).setOnClickListener(mClickListener);
		findViewById(R.id.text_notice).setOnClickListener(mClickListener);
	}

	
	Button.OnClickListener mClickListener = new Button.OnClickListener() {
		@Override
		public void onClick(View v) {
			switch(v.getId()) {
			case R.id.btn_login1:
				intent = new Intent(EtcSettings.this, LoginSetting.class);
				intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |Intent.FLAG_ACTIVITY_SINGLE_TOP);
				//intent.putExtra("id", items.get(position).id);
				goNextHistory("LoginSetting",intent);
			case R.id.text_notice:
				intent = new Intent(EtcSettings.this, SettingSNS_ngoc.class);
				startActivity(intent);
			};
		}		
	};
	
	@Override
	protected void onDestroy() {
		Log.e("nanum","EtcSettings onDestroy");
		// TODO Auto-generated method stub
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		Log.e("nanum","EtcSettings onPause");
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onRestart() {
		Log.e("nanum","EtcSettings onRestart");
		// TODO Auto-generated method stub
		super.onRestart();
	}

	@Override
	protected void onResume() {
		Log.e("nanum","EtcSettings onResume");
		// TODO Auto-generated method stub
		super.onResume();
	}

	@Override
	protected void onStart() {
		Log.e("nanum","EtcSettings onStart");
		// TODO Auto-generated method stub
		super.onStart();
	}

	@Override
	protected void onStop() {
		Log.e("nanum","EtcSettings onStop");
		// TODO Auto-generated method stub
		super.onStop();
	}
}
